package month4.day26;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Random;

public class S {
    public static void main(String[] args) {
        Random r=new Random();
        List list=new ArrayList<Integer>();
        for(int i=1;i<=6;){
            //红球范围
            int a=r.nextInt(33)+1;
            if(!list.contains(a)) {
                list.add(a);
                i++;
            }
        }
        Collections.sort(list);//排序
        int b=r.nextInt(16)+1;//绿球
        for(Object i:list)
            System.out.print(i+"\t");
        System.out.println(b);
    }
}
